<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhResourseListTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_resourse_list', function (Blueprint $table) {
            $table->increments('id');
            $table->string('r_name')->default('')->comment('资源名称');
            $table->tinyInteger('r_addr')->default('1')->nullable()->comment('1百度云，2本地');
            $table->string('r_url')->default('')->comment('资源地址');
            $table->integer('p_id')->comment('资源归属');
            $table->tinyInteger('show')->default('1')->nullable()->comment('0不显示，1显示');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_resourse_list');
    }
}
